package com.yunxin.admin.system.application.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

import com.yunxin.core.domain.model.team.UserTeamShip;

/**
 * 用户商户视图对象
 *
 * @author zero°
 * @since 2023-05-22
 */
@Schema(description = "用户商户分页对象")
@Data
public class UserMerchantPageDTO {

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "性别(1->男；2->女)")
    private Integer gender;

    @Schema(description = "性别")
    private String genderLabel;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户状态(1:启用;0:禁用)")
    private Integer status;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "接单状态 0.关闭 1.开启")
    private Integer receivingStatus;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "商户用户团队")
    private List<UserTeamShip> userTeamShips;

}
